Micron Document
Fox's Git Mirrors


Displaying Raw • Download

pkg/securemem/alloc_stub.go 83609bcb589eb3cfc35b98ecc0b3327b2ae99d77 (83609bcb) Text, 347 B

// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2024-2026 Quad4.io

//go:build !unix || wasm || haiku

package securemem

func allocLocked(n int) (data []byte, locked bool, native bool, err error) {
return make([]byte, n), false, false, nil
}

func freeLocked(data []byte, locked bool, native bool) error {
WipeBytes(data)
return nil
}

Served by rngit 1.5.2 - Generated in 0.02s